package com.wceManage.services;

import java.util.List;

import com.wceManage.beans.SysRole;

public interface SysRoleService extends BaseService<SysRole> {
    SysRole getRoleByName(String name);

    /**
     * 维护角色与菜单权限关系
     *
     * @param sysRole
     * @return
     */
    int deleteRoleResource(SysRole sysRole);

    int insertRoleResource(SysRole sysRole);

//    void saveRole(SysRole sysRole);
    
    List<SysRole> findRoleByUserId(String userId);
}
